package org.jeecg.modules.tplus.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.jeecg.common.aspect.annotation.FieldName;

/**
 * 存货分类信息
 *
 * @author hzq
 */
@Data
public class InventoryClassQueryRepDto {

    /**
     * ID
     */
    @Schema(description = "id")
    @JsonProperty(value = "id")
    @FieldName(name = "ID", value = "id")
    private String id;

    /**
     * 分类档案编码
     */
    @Schema(description = "分类档案编码")
    @JsonProperty(value = "code")
    @FieldName(name = "分类档案编码", value = "code")
    private String code;

    /**
     * 分类档案名称
     */
    @Schema(description = "分类档案名称")
    @JsonProperty(value = "name")
    @FieldName(name = "分类档案名称", value = "name")
    private String name;

    /**
     * 是否末级分类
     */
    @Schema(description = "是否末级分类")
    @JsonProperty(value = "isendnode")
    @FieldName(name = "是否末级分类", value = "isendnode")
    private boolean isendnode;

    /**
     * 父级编码
     */
    @Schema(description = "父级编码")
    @JsonProperty(value = "parent.code")
    @FieldName(name = "父级编码", value = "parent.code")
    private String parentCode;

    @Schema(description = "父级名称")
    @JsonProperty(value = "parent")
    @FieldName(name = "父级名称", value = "parent")
    private Parent parent;

    @Data
    public static class Parent{
        @Schema(description = "父级名称")
        @JsonProperty(value = "code")
        @FieldName(name = "父级名称", value = "code")
        private String code;
    }





}
